const Router = require("koa2-router");

const { getUserList } = require("./controller/userController/userController");

const { gettransList } = require("./controller/userController/userController");

const { deleteList } = require("./controller/userController/userController");

const { logindata } = require("./controller/userController/userController");

const { placeOrders } = require("./controller/pay");

const { righrighzhuce } = require("./controller/userController/userController");

const { chenkedata } = require("./controller/userController/userController");

const router = new Router();

router.get("/api/user", getUserList);

router.get("/api/tran", gettransList);

router.post("/api/tran/delete", deleteList);

router.get("/api/login", logindata);

router.post("/api/register", righrighzhuce);

router.post("/pay/placeOrder", placeOrders);

router.get("/api/che", chenkedata);

module.exports = router;
